package edu.whu.assignment6.service;

import edu.whu.assignment6.dataobject.User;

import java.util.List;

public interface UserService {
    User findById(int uid);
    int registration(User user);
    int login(User user);
    List<User> findAll();
    int buyProduct(int uid, int pid);
}
